# -*- coding: utf-8 -*-
# FileName: views.py
# Create by Hardy on 2020/07/22
# Description:

from requests import Response
from rest_framework.decorators import api_view
from rest_framework.reverse import reverse


@api_view(['GET'])
def api_root(request):
    return Response({
        'users': reverse('user-list', request=request, format=None),
        'snippets': reverse('snippet-list', request=request, format=None),
        'students': reverse('student-list', request=request, format=None),
        'articles': reverse('article-list', request=request, format=None),
    })